package Blocks;
import java.util.BitSet;

public class NextState implements Comparable {
	private BitSet nextState;
	private String output ="" ;

	
	public NextState(BitSet newNextState){
		nextState = newNextState;

	}
	public NextState(int next, String newOutput, char outputValue) {

		nextState = new BitSet();
		nextState.set(next);
		output=newOutput+outputValue;

	}
	
	
	public String getOutput() {
		return output;
	}
	public void setOutput(String output) {
		this.output = output;
	}
	public BitSet getNextState() {
		return nextState;
	}

	public void setNextState(BitSet nextState) {
		this.nextState = nextState;
	}

	

	public NextState() {
	
	}
	public static void main(String[] args) {
	
	}

	@Override
	public int compareTo(Object next) {
		NextState myNext =(NextState)next; 
		// TODO Auto-generated method stub
		if(myNext.getNextState().equals(nextState)){
			return 0;
		}
		if(myNext.getNextState().size()>myNext.getNextState().size()){
			//size , length , cardinality
			return 1;
		}
		return -1;
	}
	
}
